from django.conf.urls import url, include
from host import views

urlpatterns = [

    # 主机登录展示
    url(r'^hosts/',views.hosts, name='host_list' ),

    #堡垒机-审计日志
    url(r'^audit_session/', views.audit_session, name="audit_session"),
    url(r'^audit_cmd/(\d+)/', views.audit_cmd, name="audit_cmd"),


    # #堡垒机-web-ssh
    # url(r'^webssh/$', views.webssh, name="webssh"),
    #
    # #堡垒机-主机管理
    url(r'^multitask/', views.batch_cmd_execute, name="batch_cmd_execute"),
    # url(r'^multitask/file_transfer/$', views.multitask_file_transfer, name="multitask_file_transfer"),
    # url(r'^multitask/$', views.multitask, name="multitask"),
    # url(r'^multitask/result/$', views.multitask_result, name="task_result"),

    #########堡垒机接口########
    url(r'^api/token/gen/', views.token_gen,name='token_gen'),
    url(r'^api/multitask/cmd/',views.host_multitask_cmd,name='host_multitask_cmd'),
    url(r'^api/multitask/res/',views.multitask_res,name='host_multitask_res')



]
